package com.team.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 可用资产类
 * @author 宁一健
 *
 */

@Entity
@Table(name="asset")
public class Asset {
	private Integer id;
	private Integer price;//资产总数
	public Asset() {
		super();
	}
	public Asset(Integer id, Integer price) {
		super();
		this.id = id;
		this.price = price;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name="price")
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "Asset [id=" + id + ", price=" + price + "]";
	}
	

}
